<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE HTML>
<ui:composition 
	template="/dinamic/template/template.xhtml" 
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	 >
		<ui:define name="conteudo">
		<h:form>
		<p:panel id="consultaProjetoAlterar" header="#{mensagem['projeto.consultar.alterar']}">
			<div align="left">
				<h:panelGrid id="consulta" columns="2" cellpadding="5"> 
				
					<h:outputLabel styleClass="name" value="#{mensagem['atividade.projeto']}" />
					
					<p:autoComplete 
						id="projetoConsulta" 
						value="#{projetoManagedBean.projeto.nomeProjeto}" 
						maxResults="5" 
						completeMethod="#{autoCompleteBean.completeProjeto}" 
						size="20" 
						maxlength="20">
						
            		</p:autoComplete>
            		</h:panelGrid>
            		</div>
            		</p:panel>
            		<p:panel id="botoesConsultarProjeto">
            		<h:panelGrid columns="2" cellpadding="5">
            		<p:commandButton 
							value="#{mensagem['botao.consultar']}"  
							action="#{projetoManagedBean.consultarProjetoAlterar()}" />
						
	               		<p:commandButton 
	                		value="#{mensagem['botao.limpar']}" 
	                		update="consulta" 
	                		process="@this">  
	                   		<p:resetInput target="consulta" />  
	                	 </p:commandButton>
					</h:panelGrid>
			</p:panel>
			</h:form>
		</ui:define>
	</ui:composition>

